/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package validator.tubes.ai.i;


/**
 *
 * @author Mahdan Ahmad F A
 */
public class Bangunan {
    public enum tipeBangunan {
        Mall, University, Cafe, Gymnasium
    };
    
    private tipeBangunan tipe;
    private String jadwal;
        
    public void setJadwal(String some) {
        jadwal = some;
    }
    
    public void setTipebangunan(tipeBangunan some) {
        tipe = some;
    }
    
    public String getJadwal() {
        return jadwal;
    }
    
    public String getTipe() {
        return tipe.toString();
    }
    
    public int getEnegyWasted() {
        switch(tipe) {
            case Mall:
                return 8;
            case University:
                return 15;
            case Cafe:
                return 6;
            case Gymnasium:
                return 12;
            default:
                return 0;
        }
    }
    
    public int getAtributAddition() {
        switch(tipe) {
            case Mall:
                return 10000;
            case University:
                return 3;
            case Cafe:
                return 2;
            case Gymnasium:
                return 2;
            default:
                return 0;
        }
    }
    
    public void print() {
        System.out.println("Type    = " + tipe);
        System.out.println("Jadwal  = " + jadwal);
        System.out.println("");
    }
}
